import request from '@/router/axios';
export const getList = (current, size, params) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
};

export const save = (row) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/submit',
        method: 'post',
        data: row
    })
};

export const getAllStatesCertNum = (projectNo) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/getAllStatesCertNum',
        method: 'get',
        params: {
            projectNo
        }
    })
};

export const patchSubmitToRemote = (projectNo) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/patchSubmitToRemote',
        method: 'post',
        params: {
            projectNo
        }
    })
};

export const getServCertificateList = (projectNo, itemId) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/getServCertificateList',
        method: 'get',
        params: {
            projectNo,
            itemId
        }
    })
};

export const remove = (ids) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/remove',
        method: 'post',
        params: {
            ids
        }
    })
};

export const getLicenseVersion = (projectNo) => {
    return request({
        url: '/api/vingsoft-ywsp/caseCertificate/getLicenseVersion',
        method: 'get',
        params: {
            projectNo
        }
    })
};

